from ultralytics import YOLO
 
CFG = r'D:\Desktop\YOLO-RotatedBarocde\ultralytics\cfg\models\v8\yolov8-obb.yaml'
 
model = YOLO(model = CFG)
model.train(
            data = r"D:\Desktop\Dataset\debug\debug_cfg.yaml",
            workers = 0,
            epochs = 2,
            project = r'D:\Desktop\results\debug',
            name = 'train',
            exist_ok = True,
            pretrained = False
            )